package org.hxzon.demo.jt.logsearcher.web.services;

import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.services.ApplicationDefaults;

public class AppModule {

    @ApplicationDefaults
    public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration) {
        configuration.add(SymbolConstants.COOKIE_MAX_AGE, "14 d");
        configuration.add(SymbolConstants.HMAC_PASSPHRASE, "logSearcher");
    }

//    @Contribute(NullFieldStrategySource.class)
//    public static void contributeNullFieldStrategySource(MappedConfiguration<String, NullFieldStrategy> configuration) {
//        configuration.override("default", new EmptyNullFieldStrategy());
//    }

}
